home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1372.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.9 KB  |  181 lines

  1. 98
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. SystemTime 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baSystemTime returns the current time/date.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baSystemTime( Format )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String. 
  36. --- RECORDSEPARATOR ---
  37. Format is the time/date format to return.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. String. 
  46. --- RECORDSEPARATOR ---
  47. Returns the requested time/date.
  48. --- RECORDSEPARATOR ---
  49.  
  50. --- RECORDSEPARATOR ---
  51. Examples:
  52. --- RECORDSEPARATOR ---
  53.  
  54. --- RECORDSEPARATOR ---
  55. Director: 
  56. --- RECORDSEPARATOR ---
  57. set theTime = baSystemTime( "date" ) 
  58. --- RECORDSEPARATOR ---
  59. Authorware: 
  60. --- RECORDSEPARATOR ---
  61. theTime := baSystemTime( "Today is %A" ) -- returns the day eg "Today is 
  62. --- RECORDSEPARATOR ---
  63. Tuesday"
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. Notes:
  68. --- RECORDSEPARATOR ---
  69.  
  70. --- RECORDSEPARATOR ---
  71. There are two predefined formats - "time" and "date" 
  72. --- RECORDSEPARATOR ---
  73. "time" will return the current time in 24 hour format with leading zeros - hours, 
  74. --- RECORDSEPARATOR ---
  75. minutes and seconds eg "230412". It will always be 6 characters long. 
  76. --- RECORDSEPARATOR ---
  77. "date" will return the date in year, month, day eg "19980321". It will always be 8 
  78. --- RECORDSEPARATOR ---
  79. characters long, 
  80. --- RECORDSEPARATOR ---
  81. Other formatting is available. Any of these constants will be replaced by the 
  82. --- RECORDSEPARATOR ---
  83. appropriate time/date - any other characters will be returned as is. 
  84. --- RECORDSEPARATOR ---
  85. %a 
  86. --- RECORDSEPARATOR ---
  87. Abbreviated weekday name 
  88. --- RECORDSEPARATOR ---
  89. %A 
  90. --- RECORDSEPARATOR ---
  91. Full weekday name 
  92. --- RECORDSEPARATOR ---
  93. %b 
  94. --- RECORDSEPARATOR ---
  95. Abbreviated month name 
  96. --- RECORDSEPARATOR ---
  97. %B 
  98. --- RECORDSEPARATOR ---
  99. Full month name 
  100. --- RECORDSEPARATOR ---
  101. %d 
  102. --- RECORDSEPARATOR ---
  103. Day of month as decimal number (1 - 31) 
  104. --- RECORDSEPARATOR ---
  105. %0d 
  106. --- RECORDSEPARATOR ---
  107. Day of month with leading 0 
  108. --- RECORDSEPARATOR ---
  109. %H 
  110. --- RECORDSEPARATOR ---
  111. Hour in 24-hour format (0 - 23) 
  112. --- RECORDSEPARATOR ---
  113. %0H 
  114. --- RECORDSEPARATOR ---
  115. Hour in 24-hour format with leading 0 
  116. --- RECORDSEPARATOR ---
  117. %j 
  118. --- RECORDSEPARATOR ---
  119. Day of year as decimal number (1 - 366) 
  120. --- RECORDSEPARATOR ---
  121. %0j 
  122. --- RECORDSEPARATOR ---
  123. Day of year as decimal number with leading 0 
  124. --- RECORDSEPARATOR ---
  125. %m 
  126. --- RECORDSEPARATOR ---
  127. Month as decimal number (1 - 12) 
  128. --- RECORDSEPARATOR ---
  129. %0m 
  130. --- RECORDSEPARATOR ---
  131. Month as decimal number with leading 0 
  132. --- RECORDSEPARATOR ---
  133. %M 
  134. --- RECORDSEPARATOR ---
  135. Minute as decimal number (0 - 59) 
  136. --- RECORDSEPARATOR ---
  137. %0M 
  138. --- RECORDSEPARATOR ---
  139. Minute as decimal number with leading 0 
  140. --- RECORDSEPARATOR ---
  141. %S 
  142. --- RECORDSEPARATOR ---
  143. Second as decimal number (0 - 59) 
  144. --- RECORDSEPARATOR ---
  145. %0S 
  146. --- RECORDSEPARATOR ---
  147. Second as decimal number with leading 0 
  148. --- RECORDSEPARATOR ---
  149. %w 
  150. --- RECORDSEPARATOR ---
  151. Weekday as decimal number (0 - 6; Sunday is 0) 
  152. --- RECORDSEPARATOR ---
  153. %y 
  154. --- RECORDSEPARATOR ---
  155. Year without century, as decimal number (00 - 99) 
  156. --- RECORDSEPARATOR ---
  157. %Y 
  158. --- RECORDSEPARATOR ---
  159. Year with century, as decimal number 
  160. --- RECORDSEPARATOR ---
  161. Examples: 
  162. --- RECORDSEPARATOR ---
  163. "%d %B, %Y" 
  164. --- RECORDSEPARATOR ---
  165. "2 June, 1998" 
  166. --- RECORDSEPARATOR ---
  167. "It is %M past %H on %A" 
  168. --- RECORDSEPARATOR ---
  169. "It is 23 past 10 on Tuesday" 
  170. --- RECORDSEPARATOR ---
  171. "The time is %H:%0M:%0S" 
  172. --- RECORDSEPARATOR ---
  173. "The time is 14:25:04"
  174. --- RECORDSEPARATOR ---
  175.  
  176. --- RECORDSEPARATOR ---
  177. See also:
  178. --- RECORDSEPARATOR ---
  179.  
  180. --- RECORDSEPARATOR ---
  181. baSetSystemTime